<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ADXL362DMA: ADXL362DataEx&lt; BUF_SIZE &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">ADXL362DMA
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle"><div class="title">ADXL362DataEx&lt; BUF_SIZE &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_a_d_x_l362_d_m_a_8h_source.html">ADXL362DMA.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ADXL362DataEx&lt; BUF_SIZE &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_a_d_x_l362_data_ex.png" usemap="#ADXL362DataEx_3C_20BUF_5FSIZE_20_3E_map" alt=""/>
  <map id="ADXL362DataEx_3C_20BUF_5FSIZE_20_3E_map" name="ADXL362DataEx_3C_20BUF_5FSIZE_20_3E_map">
<area href="class_a_d_x_l362_data_base.html" title="Base class for ADXL362Data and ADXL362DataEx." alt="ADXL362DataBase" shape="rect" coords="0,0,190,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa52acbd5854047a7102df7e40e13f301"><td class="memItemLeft" align="right" valign="top"><a id="aa52acbd5854047a7102df7e40e13f301" name="aa52acbd5854047a7102df7e40e13f301"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ADXL362DataEx</b> ()</td></tr>
<tr class="separator:aa52acbd5854047a7102df7e40e13f301"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_a_d_x_l362_data_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_a_d_x_l362_data_base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_a_d_x_l362_data_base.html">ADXL362DataBase</a></td></tr>
<tr class="memitem:a6ee55260527e289c0f3342afb3e1f610 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a6ee55260527e289c0f3342afb3e1f610">ADXL362DataBase</a> (uint8_t *<a class="el" href="class_a_d_x_l362_data_base.html#ae1c39f48882d71a039c70e685edd981b">buf</a>, size_t <a class="el" href="class_a_d_x_l362_data_base.html#a1b6b7b1baa7966ac7ecfebd2dbe7da5e">bufSize</a>)</td></tr>
<tr class="separator:a6ee55260527e289c0f3342afb3e1f610 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a816795d7a39de5a8c3f4c9e2dab469dd inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="a816795d7a39de5a8c3f4c9e2dab469dd" name="a816795d7a39de5a8c3f4c9e2dab469dd"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><b>~ADXL362DataBase</b> ()</td></tr>
<tr class="separator:a816795d7a39de5a8c3f4c9e2dab469dd inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af79bddb871c0bc729c20c60104a92302 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#af79bddb871c0bc729c20c60104a92302">readX</a> (size_t index) const</td></tr>
<tr class="separator:af79bddb871c0bc729c20c60104a92302 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23d13f6a78c78c740ce9fca6c2504037 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a23d13f6a78c78c740ce9fca6c2504037">readY</a> (size_t index) const</td></tr>
<tr class="separator:a23d13f6a78c78c740ce9fca6c2504037 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa08b7528ae44ef2ca7314dd404740df8 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#aa08b7528ae44ef2ca7314dd404740df8">readZ</a> (size_t index) const</td></tr>
<tr class="separator:aa08b7528ae44ef2ca7314dd404740df8 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ca8103999e2795a13edd475e72bce4b inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a4ca8103999e2795a13edd475e72bce4b">readT</a> (size_t index) const</td></tr>
<tr class="separator:a4ca8103999e2795a13edd475e72bce4b inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1db3b0b5ce0128eec6139e6f681ce4b3 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#a1db3b0b5ce0128eec6139e6f681ce4b3">readSigned14</a> (const uint8_t *pValue) const</td></tr>
<tr class="separator:a1db3b0b5ce0128eec6139e6f681ce4b3 inherit pub_methods_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a0c55d33ca4b49673ac408f01063ca176"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_ex.html#a0c55d33ca4b49673ac408f01063ca176">staticBuf</a> [BUF_SIZE]</td></tr>
<tr class="separator:a0c55d33ca4b49673ac408f01063ca176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_class_a_d_x_l362_data_base"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_a_d_x_l362_data_base')"><img src="closed.png" alt="-"/>&#160;Data Fields inherited from <a class="el" href="class_a_d_x_l362_data_base.html">ADXL362DataBase</a></td></tr>
<tr class="memitem:ae1c39f48882d71a039c70e685edd981b inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#ae1c39f48882d71a039c70e685edd981b">buf</a></td></tr>
<tr class="separator:ae1c39f48882d71a039c70e685edd981b inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb28fbf2cc8dbb6c3a7085b04c8c1ed1 inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_d_x_l362_data_base.html#aeb28fbf2cc8dbb6c3a7085b04c8c1ed1">storeTemp</a> = false</td></tr>
<tr class="separator:aeb28fbf2cc8dbb6c3a7085b04c8c1ed1 inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89532177b5cd902c7aab98ea9122aa5e inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="a89532177b5cd902c7aab98ea9122aa5e" name="a89532177b5cd902c7aab98ea9122aa5e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>state</b> = <a class="el" href="class_a_d_x_l362_d_m_a.html#ae8464e92a6f07df8b601530b4e73bde8">ADXL362DMA::STATE_FREE</a></td></tr>
<tr class="separator:a89532177b5cd902c7aab98ea9122aa5e inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7015c87dce625ab6cae51e2558f2b2c inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="ae7015c87dce625ab6cae51e2558f2b2c" name="ae7015c87dce625ab6cae51e2558f2b2c"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>bytesRead</b> = 0</td></tr>
<tr class="separator:ae7015c87dce625ab6cae51e2558f2b2c inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47568f56131eda6c3f1200bb0d13d7a8 inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="a47568f56131eda6c3f1200bb0d13d7a8" name="a47568f56131eda6c3f1200bb0d13d7a8"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>sampleSizeInBytes</b> = 0</td></tr>
<tr class="separator:a47568f56131eda6c3f1200bb0d13d7a8 inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07c771b612709e9a383a1fe0ba260d7f inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="a07c771b612709e9a383a1fe0ba260d7f" name="a07c771b612709e9a383a1fe0ba260d7f"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>numSamplesRead</b> = 0</td></tr>
<tr class="separator:a07c771b612709e9a383a1fe0ba260d7f inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7148b04b9da8c599005ec6e9d8ef9eb inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="ae7148b04b9da8c599005ec6e9d8ef9eb" name="ae7148b04b9da8c599005ec6e9d8ef9eb"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>startOffset</b> = 0</td></tr>
<tr class="separator:ae7148b04b9da8c599005ec6e9d8ef9eb inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b6b7b1baa7966ac7ecfebd2dbe7da5e inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memItemLeft" align="right" valign="top"><a id="a1b6b7b1baa7966ac7ecfebd2dbe7da5e" name="a1b6b7b1baa7966ac7ecfebd2dbe7da5e"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>bufSize</b> = 0</td></tr>
<tr class="separator:a1b6b7b1baa7966ac7ecfebd2dbe7da5e inherit pub_attribs_class_a_d_x_l362_data_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;size_t BUF_SIZE&gt;<br />
class ADXL362DataEx&lt; BUF_SIZE &gt;</div><p>Class used to store data from the FIFO. </p>
<p>Templated version that allows the buffer size to be specified. The ADXL362 supports up to 511 samples of either 6 bytes (no temperature) or 8 bytes (with temperature), so the buffer could be up to 512 * 8 = 4096 bytes.</p>
<p>Since this class is used for asynchronous reads, </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="a0c55d33ca4b49673ac408f01063ca176" name="a0c55d33ca4b49673ac408f01063ca176"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c55d33ca4b49673ac408f01063ca176">&#9670;&#160;</a></span>staticBuf</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;size_t BUF_SIZE&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="class_a_d_x_l362_data_ex.html">ADXL362DataEx</a>&lt; BUF_SIZE &gt;::staticBuf[BUF_SIZE]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Buffer size. Should be a multiple of the entry size. </p>
<p>The getEntrySize() method will return either 6 (without temperature) or 8 (with temperature) </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/<a class="el" href="_a_d_x_l362_d_m_a_8h_source.html">ADXL362DMA.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
